package com.ruoyi.project.travel.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.MbEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * VIP码对象 tr_vip_code
 *
 * @author HYD
 * @date 2020-06-15
 */
@Data
@TableName("tr_vip_code")
@ApiModel(value="tr_vip_code对象", description="VIP码")
public class VipCode extends MbEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    @Excel(name = "激活码")
    @TableField("code")
    @ApiModelProperty(value = "激活码")
    private String code;

    @Excel(name = "使用用户编号")
    @TableField("user_id")
    @ApiModelProperty(value = "使用用户编号")
    private Long userId;

    @Excel(name = "截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //格式化前台日期入参注解
    @TableField("end_time")
    @ApiModelProperty(value = "截止日期")
    private Date endTime;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}